#include "common.h"

#include <windows.h>
#include <stdio.h>
#include <stdarg.h>

#include <string>

void trace(const char* message, ...)
{
	std::string str = "npOpenDocuments: ";
	char buf[512];
	va_list va;
	va_start(va, message);
	vsprintf_s(buf, sizeof(buf) - 1, message, va);
	va_end(va);
	str += buf;
	str += "\r\n";
	OutputDebugStringA(str.c_str());
}
